<script>
	$(document).ready(function() {
		
		$('#tgl_awal').datebox({
		   
		});

		$('#tgl_akhir').datebox({
	   
		});

	});

// print
	print_lap = function(){ // id calon siswa
		var tipe  = $('input[name=tipe]:checked').val();
		var tgl_awal =  $('#tgl_awal').datebox('getValue');
		var tgl_akhir = $('#tgl_akhir').datebox('getValue');
		tgl_awal = tgl_awal.split('/').join('-');
		tgl_akhir = tgl_akhir.split('/').join('-');
		
		popupwindow('<?=base_url()?>laporan_keuangan/print_data/'+tipe+'/'+tgl_awal+'/'+tgl_akhir, 'Print Surat Keterangan', 800, 500);
	}
</script>
<form id="form" method="post" style="margin:10px;">
	<div class="fitem">
		<label style="width:120px"><strong>Tipe Transaksi</strong></label>:
		<input type="radio" name="tipe" value="1" checked="checked">&nbsp;Pemasukan
		&nbsp;&nbsp;&nbsp;&nbsp;
		<input type="radio" name="tipe" value="2" >&nbsp;Belanja
		&nbsp;&nbsp;&nbsp;&nbsp;
		<input type="radio" name="tipe" value="3" >&nbsp;Pemasukan & Belanja
	</div>
	<div class="fitem" >
		<label style="width:120px"><strong>Periode Transaksi</strong></label>:
		<div class="fitem" >
			<input name="tgl_awal" id="tgl_awal" data-options="formatter:DateFormatter, parser:DateParser" size="15" >
			 s/d 
			<input name="tgl_akhir" id="tgl_akhir" data-options="formatter:DateFormatter, parser:DateParser" size="15" >
		</div>
	</div>
	<div>
		<a href="#" onclick="print_lap()" class="easyui-linkbutton btn" iconCls="icon-search">Cetak</a>
	</div>
</form>
	

